Opcode
What operation would we like the UUT to perform.
note: senders should probably set want_response in their request packets, so that they can know when the state
machine has started processing their request
Content copied to clipboard
meshtastic.PowerStressMessage.Opcode
Entries
Properties
Link copied to clipboard
Turn off the BT radio for num_seconds
Content copied to clipboard
BT_OFF = 80;
Link copied to clipboard
Turn on the BT radio for num_seconds
Content copied to clipboard
BT_ON = 81;
Link copied to clipboard
Force deep sleep for FIXME seconds
Content copied to clipboard
CPU_DEEPSLEEP = 33;
Link copied to clipboard
Spin the CPU as fast as possible for num_seconds
Content copied to clipboard
CPU_FULLON = 34;
Link copied to clipboard
Let the CPU run but we assume mostly idling for num_seconds
Content copied to clipboard
CPU_IDLE = 32;
Link copied to clipboard
Stop powerstress processing - probably by just rebooting the board
Content copied to clipboard
END_QUIET = 3;
Link copied to clipboard
Try to turn off all automatic processing of packets, screen, sleeping, etc (to make it easier to measure in isolation)
Content copied to clipboard
FORCE_QUIET = 2;
Link copied to clipboard
Turn off the GPS radio for num_seconds
Content copied to clipboard
GPS_OFF = 112;
Link copied to clipboard
Turn on the GPS radio for num_seconds
Content copied to clipboard
GPS_ON = 113;
Link copied to clipboard
Force the LED off for num_seconds
Content copied to clipboard
LED_OFF = 49;
Link copied to clipboard
Turn the LED on for num_seconds (and leave it on - for baseline power measurement purposes)
Content copied to clipboard
LED_ON = 48;
Link copied to clipboard
Completely turn off the LORA radio for num_seconds
Content copied to clipboard
LORA_OFF = 64;
Link copied to clipboard
Receive Lora packets for num_seconds (node will be mostly just listening, unless an external agent is helping stress this by sending packets on the current channel)
Content copied to clipboard
LORA_RX = 66;
Link copied to clipboard
Send Lora packets for num_seconds
Content copied to clipboard
LORA_TX = 65;
Link copied to clipboard
Print board version slog and send an ack that we are alive and ready to process commands
Content copied to clipboard
PRINT_INFO = 1;
Link copied to clipboard
Turn the screen off
Content copied to clipboard
SCREEN_OFF = 17;
Link copied to clipboard
Turn the screen on
Content copied to clipboard
SCREEN_ON = 16;
Link copied to clipboard
Unset/unused
Content copied to clipboard
UNSET = 0;
Link copied to clipboard
Turn off the WIFI radio for num_seconds
Content copied to clipboard
WIFI_OFF = 96;
Link copied to clipboard
Turn on the WIFI radio for num_seconds
Content copied to clipboard
WIFI_ON = 97;
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
Link copied to clipboard
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.